package com.sanwu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sanwu.dto.SysUserDto;
import com.sanwu.entity.SysUser;
import com.sanwu.vo.AjaxResult;

/**
 * @author hgh
 * @date 2025/3/11
 * @apiNote
 */


public interface SysUserService extends IService<SysUser> {

    /**
     * 密码登录
     *
     * @param sysUserDto
     * @return
     */
    AjaxResult passWordLogin(SysUserDto sysUserDto);

    /**
     * 短信验证码登录
     *
     * @param sysUserDto
     * @return
     */
    AjaxResult phoneMessageLogin(SysUserDto sysUserDto);

    /**
     * 查看用户详情
     *
     * @param sysUserDto
     * @return
     */
    AjaxResult getDetail(SysUserDto sysUserDto);

    /**
     * 修改用户信息
     *
     * @param sysUserDto
     * @return
     */
    AjaxResult updateUserInfo(SysUserDto sysUserDto);

    /**
     * 注册用户
     *
     * @param sysUserDto
     * @return
     */
    AjaxResult insertUser(SysUserDto sysUserDto);

    /**
     * 发送短信验证码
     * @return
     */
    AjaxResult sendCheckCode();
}
